<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    Route::get('auth/operation-logs', 'LogController@index')->name('dcat-admin.operation-log.index');

    $router->get('/', 'HomeController@index')->name('home');

    $router->resource('books', 'BookController')->names('book');
    $router->resource('words', 'WordController')->names('word');

});
